package com.mini.rpc.protocol;

import lombok.Getter;

/**
 * 状态
 */
public enum MsgStatus {
    /**
     * 0 -> 成功
     */
    SUCCESS(0),
    /**
     * 1 -> 失败
     */
    FAIL(1);

    @Getter
    private final int code;

    MsgStatus(int code) {
        this.code = code;
    }

}
